package com.lanyan.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import com.lanyan.system.domain.Shopping;
import com.lanyan.system.domain.vo.ShoppingVo;

/**
 * 购物车Service接口
 *
 * @author lanyan
 * @date 2024-11-26
 */
public interface IShoppingService extends IService<Shopping>
{
    /**
     * 查询购物车
     *
     * @param shoppingId 购物车主键
     * @return 购物车
     */
    public Shopping selectShoppingByShoppingId(Long shoppingId);

    /**
     * 查询购物车列表
     *
     * @param shopping 购物车
     * @return 购物车集合
     */
    public List<Shopping> selectShoppingList(Shopping shopping);

    /**
     * 查询购物车Vo列表
     *
     * @param shopping 购物车
     * @return 购物车集合
     */
    public List<ShoppingVo> selectShoppingVoList(Shopping shopping);

    /**
     * 新增购物车
     *
     * @param shopping 购物车
     * @return 结果
     */
    public boolean insertShopping(Shopping shopping);

    /**
     * 修改购物车
     *
     * @param shopping 购物车
     * @return 结果
     */
    public boolean updateShopping(Shopping shopping);

    /**
     * 批量删除购物车
     *
     * @param shoppingIds 需要删除的购物车主键集合
     * @return 结果
     */
    public boolean deleteShoppingByShoppingIds(Long[] shoppingIds);

    /**
     * 删除购物车信息
     *
     * @param shoppingId 购物车主键
     * @return 结果
     */
    public boolean deleteShoppingByShoppingId(Long shoppingId);
}
